package com.study.spring.boot.enums;

import lombok.Data;

/**
 * @ClassName: ErrorCode
 * @Description: TODO
 * @author: limingxing
 * @Date: 2021/1/10  17:53
 */
public enum ErrorCode {

    /**  Token   */
    USER_TOKEN_NOT_EXIST("100000", "用户Token不存在", "content or images is illegal", ""),

    /** common */
    REQUISITE_PARAMETER_NOT_EXIST("600001", "必要的参数不能为空", "content or images is illegal", ""),
    /** 短信发送 */
    MESSAGE_SMS_SEND_FAILURE("600002", "发送短信失败", "send sms is failed", ""),

    VERIFICATION_CODE_ERROR("600003","输入的验证码有误","The verification code entered is wrong",""),

    /** 实名认证 */
    AUTH_FAILURE("600005", "实名认证失败", "create kyc is failed", ""),
    AUTH_EXIST_FAILURE("600006", "认证已存在", "create kyc is failed", ""),

    /** 支付密码  */
    PAYMENT_PASSWORD_UPDATE_FAILURE("600007", "设置支付密码失败", "update pay password is failed", ""),
    PAYMENT_PASSWORD_ERROR("600008", "支付密码错误", "payment password error", ""),

    /** 服务银行 */
    BANK_CREATE_FAILURE("600009", "支付密码不存在", "create bank is failed", ""),
    USER_BANK_CARD_CREATE_FAILURE("600010", "银行卡绑定失败", "create userBankCard is failed", ""),
    USER_BANK_CARD_NOT_EXIST("600011", "用户银行卡不存在", "user bank Card not exist", ""),
    /** 钱包 */
    USER_WALLET_BALANCE_NOT_ENOUGH("600015", "用户钱包余额不足", "user wallet balance not enough ", ""),

    /*  System  */
    SERVER_ERROR("999999", "系统错误", "system error", "系統錯誤")
    ;

    private String error;
    private String cnMsg;
    private String enMsg;
    private String twMsg;

    ErrorCode(String error, String cnMsg, String enMsg, String twMsg) {
        this.error = error;
        this.cnMsg = cnMsg;
        this.enMsg = enMsg;
        this.twMsg = twMsg;


    }

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }

    public String getCnMsg() {
        return cnMsg;
    }

    public void setCnMsg(String cnMsg) {
        this.cnMsg = cnMsg;
    }

    public String getEnMsg() {
        return enMsg;
    }

    public void setEnMsg(String enMsg) {
        this.enMsg = enMsg;
    }

    public String getTwMsg() {
        return twMsg;
    }

    public void setTwMsg(String twMsg) {
        this.twMsg = twMsg;
    }
}
